/*
* $Id: Thread.h 334 2011-09-07 20:01:15Z volok-aleksej@yandex.ru $
*
* Copyright 2009-2011 by Volokitin Aleksey
* All rights reserved
*
*/
#ifndef _THREAD_H_
#define _THREAD_H_

class CThread
{
protected:
	int m_nId;
	HANDLE m_handle;
public:
	CThread();
	virtual ~CThread();
public:
	bool CreateThread();
	void StopThread();
	void ResumeThread();
	void PauseThread();
	bool IsStarted();
	static int FuncThread(void* param);
protected:
	virtual int ThreadFunc() = 0;
	virtual void Stop() = 0;
	virtual void Resume() = 0;
	virtual void Pause() = 0;
};

#endif/*_THREAD_H_*/